#ifndef EMV_RETURN_H
#define EMV_RETURN_H

#include "DataType.h"

class ArqSimpleTransceiver;

class EmvReturn
{
private:
	 int mTransRet = 0;
	 int mResult = -1;
	 bool mAdviceReq = false;
	 bool mForceAccept = false;
	 bool mSignatureReq = false;
	 bool mPinExist = false;
	 byte  mPin[8];
	 int mIssSresLen = 0;
	 byte mIssSresRes[512];

public:
	int getTransRet();
	int getResult();
    bool isAdviceReq();
    bool isForceAccept();
    bool isSignatureReq();
    bool isPinExist();
	 byte* getPin();

	int getIssSresLen();
	
	 byte* getIssSresRes();

    bool setBoolean(byte val);
	
	int inEmvReturn(byte* out, int pos);

};

#endif